/**
 * @ author: 汪孟苹
 */
define([],function(){
	var tpl = {};

	tpl.info = function(){
		return info();
	}
	tpl.mtTable = function(){
		return mtTable();
	}
	tpl.bmiTable = function(){
		return bmiTable();
	}

	var info = function(){
		return 	'<script id="progestationSelfRecord_info" type="text/html">'+
				'	<ul class="clearfix">'+
		        '        <li><span>姓名：</span><div>{{userName}}</div></li> '+
		        '        <li><span>手机号码：</span><div>{{phoneNo}}</div></li>'+
		        '        <li><span>年龄：</span><div>{{if age}}{{age}}{{else}}暂无{{/if}}</div></li> '+
		        '        <li><span>身高：</span><div>{{if preHeight}}{{preHeight}}{{else}}暂无{{/if}}</div></li> '+
		        '    </ul>'+
				'</script>';
	}

	var mtTable = function(){
		return 	'<script id="progestationSelfRecord_mtTable" type="text/html">'+
				'	<div class="column">'+
				'		<div class="bg-blue tit"><span class="month">月份</span><span class="day">日期</span></div>'+
				'		{{each days as value i}}'+
				'			<div class="bg-blue">{{value}}</div>'+
				'		{{/each}}'+
				'	</div>'+
				'	{{each list as value i}}'+
				'		<div class="column">'+
				'			<div class="bg-blue">{{value.month}}</div>'+
				'			{{each value.prepregnancyList as item j}}'+
				'				<div {{if item.prepregnancy}}{{if item.prepregnancy.menstrual != "2"}}class="bg-pink"{{/if}}{{/if}}>{{if item.prepregnancy}}{{if item.prepregnancy.sleepTogether=="0"}}<i class="fa fa-heart" aria-hidden="true"></i>{{/if}}{{item.prepregnancy.temperature}}{{/if}}</div>'+
				'			{{/each}}'+
				'		</div>'+
				'	{{/each}}'+
				'</script>';
	}

	var bmiTable = function(){
		return 	'<script id="progestationSelfRecord_bmiTable" type="text/html">'+
				'	<div class="line title">'+
				'		<div>日期</div>'+
				'		<div>体重（kg）</div>'+
				'		<div>BMI（体质指数）</div>'+
				'		<div>体重情况</div>'+
				'	</div>'+
				'	{{each list as value i}}'+
				'		<div class="line {{value.className}}">'+
				'			<div>{{value.recordTime}}</div>'+
				'			<div>{{value.weight}}</div>'+
				'			<div>{{value.bmi}}</div>'+
				'			<div>{{value.weightSituation}}</div>'+
				'		</div>'+
				'	{{/each}}'+
				'</script>';
	}


	return tpl;
});